<template>
    <div>
        <div class="title-main" :style="{'--size':(size&&size==='max'?'40px':'20px'),'--end':(size&&size==='max'?'-100px':'-60px'),'--height':(size&&size==='max'?'120px':'80px')}">
            <div class="title">
               <div class="title-text"  >
                {{ title }}
               </div> 
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return{

        }
    },
    props:['title','size']
}
</script>

<style scoped>
    .title-main{
        width: 100%;
       position: relative;
       
        

    }
    .title{
        justify-content: center;
        display: flex;
        align-items: center;
       
        height: var(--height);
        animation: fadeInDown 1s;
       
        /* position: relative; */
    }
    .title::after{
        position: absolute;
        content: "";
        width: 90px;
        height: 3px;

        margin-bottom: var(--end);
        left: 50%;
        background: #FF6900;
        margin-left: -45px;
    }
    .title-text{
        
        font-size: var(--size);
        font-weight: 700;
        letter-spacing: 1px;
        
       
        
    }


</style>